package ui.listener;

import java.util.List;

public class HTableEvent {
    private String rowKey;
    private String colName;
    private String newValue;
    private String oldValue;
    private List<String> rowList;

    public HTableEvent(List<String> rowList) {
        this.rowList = rowList;
    }

    public HTableEvent(String rowKey, String colName, String newValue) {
        this.rowKey = rowKey;
        this.colName = colName;
        this.newValue = newValue;
    }

    public HTableEvent(String rowKey, String colName, String newValue, String oldValue) {
        this.rowKey = rowKey;
        this.colName = colName;
        this.newValue = newValue;
        this.oldValue = oldValue;
    }

    public HTableEvent(String rowKey, String colName, String oldValue, String newValue,List<String> rowList) {
        this.rowKey = rowKey;
        this.colName = colName;
        this.newValue = newValue;
        this.oldValue = oldValue;
        this.rowList = rowList;
    }

    public String getRowKey() {
        return rowKey;
    }

    public String getColName() {
        return colName;
    }

    public String getOldValue() {
        return oldValue;
    }

    public String getNewValue() {
        return newValue;
    }
    public List<String> getRow()
    {
        return rowList;
    }
}

